package com.helmlabs.grouper.cms.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.helmlabs.grouper.core.model.BaseObject;

@Entity
@Table(name="page")
public class Page extends BaseObject<Long> {
	
	private String seoFriendlyId;
	private String title;
	private String description;
	private String templateName;
	private AbstractLayout layout;

	public String getSeoFriendlyId() {
		return seoFriendlyId;
	}
	public void setSeoFriendlyId(String seoFriendlyId) {
		this.seoFriendlyId = seoFriendlyId;
	}
	public String getTemplateName() {
		return templateName;
	}
	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	@ManyToOne
	@JoinColumn(name="layout_id", nullable=true)
	public AbstractLayout getLayout() {
		return layout;
	}
	public void setLayout(AbstractLayout layout) {
		this.layout = layout;
	}
	
}
